package com.yuju.group.dao.impl;

import java.util.HashMap;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Repository;

import com.yuju.common.core.dao.AbstractBaseDao;
import com.yuju.group.dao.IGroupParamDao;
import com.yuju.group.dao.entity.GroupParam;
import com.yuju.group.dao.entity.GroupParamKey;
import com.yuju.group.dao.mapper.GroupParamMapper;
import com.yuju.group.model.GroupParamModel;
import com.yuju.persist.base.mapper.BaseMapper;

/**
 * 
 * 类名：GroupParamDaoImpl  <br />
 *
 * 功能：集团参数Dao
 *
 * @author : xuehj <br />
 * @Date : 2018年1月30日 下午8:01:39  <br />
 * @version : 1.1 <br />
 */
@Repository
public class GroupParamDaoImpl extends AbstractBaseDao<GroupParamModel, GroupParam, GroupParamKey> implements IGroupParamDao {
	@Autowired
	private GroupParamMapper groupParamMapper;
	
	@Override
	public BaseMapper<GroupParam, GroupParamKey> getMapper() {
		// TODO Auto-generated method stub
		return groupParamMapper;
	}

	@Override
	public int initGroupParam(String groupId) {
		// TODO Auto-generated method stub
		Map<Object, Object> map = new HashMap<Object, Object>();
		map.put("groupId", groupId);
		return groupParamMapper.initGroupParam(map);
	}

}